package control;

import javax.swing.JMenu;
import javax.swing.JMenuBar;
import view.Gui;
import view.GuiList;
import view.StatusArea;

public class XLMenuBar extends JMenuBar {
    public XLMenuBar(Gui gui, GuiList guiList, StatusArea statusArea) {
        JMenu file = new JMenu("File");
        JMenu edit = new JMenu("Edit");
        file.add(new PrintMenuItem(gui));
        file.add(new SaveMenuItem(gui, statusArea));
        file.add(new OpenMenuItem(gui, statusArea));
        file.add(new NewMenuItem(gui));
        file.add(new CloseMenuItem(gui, guiList));
        edit.add(new ClearMenuItem());
        edit.add(new ClearAllMenuItem());
        add(file);
        add(edit);
        add(new WindowMenu(guiList));
    }
}